package com.itheima.service;

import com.itheima.domain.Contact;
import com.itheima.domain.ContactCondition;
import com.itheima.domain.Page;

import java.sql.SQLException;
import java.util.List;

public interface ContactService {
    List<Contact> queryAll();

    boolean add(Contact con);

    Contact queryById(int id);

    boolean update(Contact contact);

    boolean delete(int id);

    Page<Contact> page(int pageNo, int pageSize);

    List<Contact> queryForCondition(ContactCondition contactCondition);
}
